package cn.xmy.demo01.service.impl;
import cn.xmy.demo01.dao.ProductsDao;
import cn.xmy.demo01.pojo.Page;
import cn.xmy.demo01.pojo.Products;
import cn.xmy.demo01.pojo.Shops;
import cn.xmy.demo01.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class ProductsServiceImpl implements ProductsService {
    @Autowired
    ProductsDao productsDao;

    @Override
    public List<Shops> MoHuAllShops(String shopsInfo) throws SQLException, ClassNotFoundException {
        List<Shops> shops=productsDao.MoHuAllShops(shopsInfo);
        return shops;
    }

    @Override
    public List<Products> findAllProducts() throws SQLException, ClassNotFoundException {
        return productsDao.findAllProducts();
    }
}
